import debounce from './debounce.js'
import throttle from './throttle.js'
import permission from './permission'
import draggable from './draggable'
const directives = {
    dc: debounce,
    throttle,
    p: permission,
    d: draggable,
}

export default {
    install(Vue) {
        Object.keys(directives).forEach((key) => {
            Vue.directive(key, directives[key])
        })
    },
}